<?php
namespace app\web\model;


/**
 * 排班表
 * @package app\basic\model
 */
class Scheduling extends Base 
{
    /**
     * 最近7天
     * [getDate description]
     * @return [type] [description]
     */
    public static function getDate(){
        $data = [
            [
                'ymd' => date('Y-m-d'),
                'md' => date('m/d'),
                'w' => '今天',
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+1 day")),
                'md' => date("m/d",strtotime("+1 day")),
                'w' => '明天',
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+2 day")),
                'md' => date("m/d",strtotime("+2 day")),
                'w' => '后天',
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+3 day")),
                'md' => date("m/d",strtotime("+3 day")),
                'w' => '周' . mb_substr( "日一二三四五六",date("w",strtotime("+3 day")),1,"utf-8" ),
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+4 day")),
                'md' => date("m/d",strtotime("+4 day")),
                'w' => '周' . mb_substr( "日一二三四五六",date("w",strtotime("+4 day")),1,"utf-8" ),
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+5 day")),
                'md' => date("m/d",strtotime("+5 day")),
                'w' => '周' . mb_substr( "日一二三四五六",date("w",strtotime("+5 day")),1,"utf-8" ),
            ],
            [
                'ymd' => date('Y-m-d',strtotime("+6 day")),
                'md' => date("m/d",strtotime("+6 day")),
                'w' => '周' . mb_substr( "日一二三四五六",date("w",strtotime("+6 day")),1,"utf-8" ),
            ]
        ];
        return $data;
    }
}